///小组件的集合

import 'package:flutter/material.dart';

///小圆点
class Dot extends StatelessWidget {

  final Color color;
  final double width;
  final double height;
  final Widget? child;

  const Dot({super.key, required this.color, this.width = 10, this.height = 10, this.child});

  @override
  Widget build(BuildContext context) {
    return ClipOval(
      child: Container(
        width: width,
        height: height,
        color: color,
        child: child,
      ),
    );
  }
}